# s = "helloworld_2025"
# print(s.isalnum())

# a = "hello"
# b = "world"
# c = "-".join([a, b])
# print(c)

# a = '110This is an example 0001'
# print(a.strip("01"))  #去除尾部空格

# aa = 15
# print("aa=%f"%aa)
#
# a = 3.141592
# print("a=%f" % a)
#
# b = "abcdefghijklmn"
# print("b=%s" % b)

# a=15				#定义变量a并赋值
# b=12345678.1234567		#定义变量b并赋值
# c="I love Python!"		#定义字符串strs并赋值
# print("a={}".format(a))		#输出5位数字空位补0
# print("b={}".format(b))		#输出b，用千分位分隔并保留3位小数
# print("c={}".format(c))

# print("你好，{}，你这个月的工资是{}元！".format("张三", 8000))

# a=15
# b=3.141592
# c="I love Python!"
# print("a=%d"  % a)	#使用%d，输出整数a
# print("b=%f" % b)	#输出%f，输出小数b
# print("b=%.3f" % b)
# print("%s" % c )	               #使用%s，输出字符串c

# a = 'cccc'
# b = a
# print(a, b)
#
# b = 'cc1'
# print(a, b)

# for x in range(1,10):		#循环变量x从1循环到9
#     for y in range(1,x+1):	               #循环变量y从1循环到x+1
#         print(y,"*", x,"=", x*y, " ", end="")	#输出乘法表达式
#     print()

# a = "hello"
# b = "world"
# c = "-".join([a,b])
# print(c)

# old_str = "110This is an example 0001"	#创建字符串
# new_str = old_str.strip()		               #移除new_str两侧的1
# print(new_str)

# strs ='abcdefg'
# print(strs[::-1])
#
#
# str1 = 'I love Python'
# str2 = str1.split()
# print(str2)
# str3 = str2[::-1]
# print(str3)
# str4 = " ".join(str3)
# print(str4)

# print(list('hello world'))
# print(type(range(1, 10)))

str1 = "abcdefg"
print(str1[::-1])
